package edu.sctu.practice.class02.lvchang.assign02.rational;

/**
 * Created by Administrator on 2015/10/8.
 */
public class Rational {

    int a;
    int b;

    public Rational(int a, int b) {
        this.a = a;
        this.b = b;
    }

    public void plus() {
        System.out.println("a + b = " + (a + b));
    }

    public void minus() {
        System.out.println("a - b = " + (a - b));
    }

    public void multipiy() {
        System.out.println("a * b = " + (a * b));
    }

    public void divide() {
        System.out.println("a / b = " + (a / b));
    }
}
